package cc.sunni.pojo.bo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class RegisterLoginBO {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "1[3|4|5|7|8][0-9]\\d{8}",message = "手机号码格式不正确")
    private String mobile;

    @NotBlank(message = "短信验证码不能为空")
    @Pattern(regexp = "\\d{6}",message = "短信验证码格式不正确")
    private String smsCode;
}
